package nccloud.pubimpl.tmpub.pub;

import nc.vo.cmp.informer.InformerVO;
import nc.vo.ftm.gatherbill.entity.FtmGatherBillVO;
import nc.vo.ftm.gathering.entity.AggFtmGatheringBillVO;
import nc.vo.pub.BusinessException;
import nc.vo.pub.CircularlyAccessibleValueObject;
import nccloud.pubitf.tmpub.pub.ISagasBizPublishService;
import nc.bs.framework.common.InvocationInfoProxy;
import nc.codeplatform.framework.commons.DaoUtils;
import nc.codeplatform.framework.service.ServiceSupport;

public class SagasBizPublishServiceImpl
extends ServiceSupport
implements ISagasBizPublishService
{
	public void savePulishftm(InformerVO[] informvos) {
		for(InformerVO informvo : informvos) {
			String pk_org = informvo.getPk_org();
			String pk_currtype = informvo.getPk_currtype();
			
			AggFtmGatheringBillVO vo = new AggFtmGatheringBillVO();
			FtmGatherBillVO ftgb = vo.getParentVO();
			
			CircularlyAccessibleValueObject[] cobs = vo.getAllChildrenVO();
			
			CircularlyAccessibleValueObject[] cobss = vo.getChildrenVO();
			
			String userId = InvocationInfoProxy.getInstance().getUserId();
			
			try {
				dao.insert(vo);
				
			} catch (BusinessException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	};

}
